import request from '@/api/request'
export function roles(data) {
  return request({
    url: '/emrweb/role/page',
    method: 'post',
    data,
  })
}

export function roleInfo(params) {
  return request({
    url: '/emrweb/role/roleInfo',
    method: 'get',
    params,
  })
}

export function changeStatus(params) {
  return request({
    url: '/emrweb/role/status',
    method: 'get',
    params,
  })
}

export function remove(params) {
  return request({
    url: '/emrweb/role/remove',
    method: 'get',
    params,
  })
}

export function save(data) {
  console.log('data =' + JSON.stringify(data))
  return request({
    url: '/emrweb/role/save',
    method: 'post',
    data,
  })
}
